package controller;
import entity.DVD;
import service.impl.DVDServiceImpl;

public class DVDControler {
	DVDServiceImpl dsi = new DVDServiceImpl();
	
	public boolean save(DVD dvd) {
		return dsi.save(dvd);
	}

	public boolean delete(String name) {
		return dsi.delete(name);
	}

	public boolean update(DVD dvd) {
		return dsi.update(dvd);
	}

	public DVD selectByName(String name) {
		return dsi.selectByName(name);
	}

	public DVD[] selectByType(String type) {
		return dsi.selectByType(type);
	}

	public DVD[] selectAll() {
		return dsi.selectAll();
	}

	public boolean rentDVD(String name) {
		return dsi.rentDVD(name);
	}

	public boolean returnDVD(String name) {
		return dsi.returnDVD(name);
	}

	public DVD[] selectAllNotRend() {
		return dsi.selectAllNotRend();
	}

	public DVD[] descendingOrderByTime() {
		return dsi.descendingOrderByTime();
	}
}
